import http from '../utils/http';
import httpNewWay from '@/api/httpNewWay';
const base = '/api/isv/';
export default {
  // 发票查询
  queryInvoiceByTicketOrderIdForMob(id) {
    return http.get(
      'invoice/queryInvoiceByTicketOrderIdForMob?ticketOrderId=' + id
    );
  },
  // 申请发票
  addInvoice(params) {
    return http.post('invoice/addInvoice', {
      ...params,
    });
  },
  //获取折上折接口
  foldUp(params) {
    return http.post('mob/queryMobTicketTypeDiscountByActivityId', {
      ...params,
    });
  },
  // 查询登录人发票
  async queryInvoiceListByMob(params) {
    return await httpNewWay.post(
      `${base}invoice/queryInvoiceListByMob`,
      params
    );
  },
  // 根据发票Id查询详情
  async queryInvoiceByIdForMob(params) {
    return await httpNewWay.get(
      `${base}invoice/queryInvoiceByIdForMob`,
      params
    );
  },
  //  查询主题配置
  async queryThemeConfigurationByCorpId(params) {
    return await httpNewWay.post(
      `${base}activity/queryThemeConfigurationByCorpId`,
      params
    );
  },
  // 免费报名获取报名表单
  async queryTempletByTicketTypeId(params) {
    return await httpNewWay.post(
      `${base}temp/queryTempletByTicketTypeId`,
      params
    );
  },
  // 论坛数据 查询论坛的
  async queryForum(params) {
    return await httpNewWay.post(`${base}signUp/queryForum`, params);
  },
  // 获取验证码
  async getVerificationCode(params) {
    return await httpNewWay.post(`${base}signUp/getVerificationCode`, params);
  },
  // 免费报名
  async signUp(params) {
    return await httpNewWay.post(`${base}signUp/signUp`, params);
  },
  // 获取用户信息加密的
  async hFiveGetUserInfo(params) {
    return await httpNewWay.get(`${base}auth/hFiveGetUserInfo`, params);
  },
};
